Skip to content

Conversation

@j-madrone
Copy link
Collaborator

Copilot AI review requested due to automatic review settings November 20, 2025 15:10
@github-actions
Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py68494%10–11, 69–70
cli
   __init__.py52394%49, 51, 60
   containers.py270100% 
cli/commands
   __init__.py00100% 
   api_clients.py291996%27, 302, 448–449, 483, 493, 584, 615, 623
   api_collections.py257398%28, 183, 347
   assets.py47295%55–56
   connections.py526599%591, 593, 599, 637, 988
   data_tables.py165596%31, 253, 267, 321–322
   guide.py166199%106
   init.py1070100% 
   profiles.py2030100% 
   properties.py97198%21
   pull.py172298%193–194
   workspace.py39294%61, 71
cli/commands/connectors
   __init__.py00100% 
   command.py90297%110, 159
   connector_manager.py203498%176, 292, 300–301
cli/commands/projects
   __init__.py00100% 
   command.py2721096%359–362, 373, 439–441, 491, 495
   project_manager.py166795%48, 66, 263–264, 276, 317, 325
cli/commands/push
   __init__.py00100% 
   command.py133496%109, 112, 230, 308
cli/commands/recipes
   __init__.py00100% 
   command.py427997%117, 133–134, 272–275, 403, 709
   validator.py7062097%174, 883, 1136, 1223, 1246, 1279, 1281–1282, 1359–1361, 1457–1458, 1517–1518, 1707–1708, 1736–1738
cli/utils
   __init__.py40100% 
   exception_handler.py3182791%134–135, 140–141, 143–144, 174–175, 181, 184–185, 228, 275, 302, 329, 386, 421, 480, 482–483, 488–489, 491–495
   gitignore.py140100% 
   ignore_patterns.py230100% 
   spinner.py430100% 
   token_input.py451762%70, 98, 100, 102–104, 107, 124, 127–128, 132–133, 136, 139–140, 142, 144
   version_checker.py135695%24, 26, 33–34, 72, 102
cli/utils/config
   __init__.py50100% 
   manager.py5443493%127, 138, 149, 157–159, 162, 165, 177, 227–228, 399, 417, 421, 424–427, 443, 464, 478, 491, 533, 574, 652–653, 690, 904, 1047–1048, 1062–1063, 1119, 1178
   models.py330100% 
   profiles.py3091096%93, 189–190, 193, 228–230, 255–257
   workspace.py680100% 
TOTAL575518796% 

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR makes the last_seen field optional in the User model to address DEVP-617. The field can now be null, allowing for cases where user activity tracking is not available.

Key Changes:

  • Removed last_seen from required fields in the OpenAPI specification
  • Added nullable: true to the last_seen field definition
  • Updated Python model to use Optional[datetime] with proper null handling

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
workato-api-spec.yaml Removed last_seen from required fields and marked it as nullable in the schema
src/workato_platform_cli/client/workato_api/models/user.py Updated field type to Optional[datetime] = None and added nullable handling in to_dict()
src/workato_platform_cli/client/workato_api/docs/User.md Updated documentation to indicate the field is optional
openapitools.json Bumped OpenAPI Generator version from 7.14.0 to 7.16.0
.gitignore Added .workato-ignore to git ignore list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@cmworkato cmworkato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@cmworkato cmworkato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmworkato cmworkato merged commit 4074b58 into main Nov 20, 2025
11 checks passed
@cmworkato cmworkato deleted the DEVP-617-pydantic-validation-error-during-workato-init-last-seen branch November 20, 2025 15:30
shihanpan pushed a commit that referenced this pull request Jan 7, 2026
Add optional last_seen field to User model and update API spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants